import TencentMap from './index.vue'

export default TencentMap
export { TencentMap }

// 导出组件类型
export interface TencentMapInstance {
  setCenter: (lat: number, lng: number) => void
  setZoom: (zoom: number) => void
  getSelectedCoordinates: () => { lat: number; lng: number } | null
  clearSelection: () => void
}

export interface TencentMapProps {
  width?: string
  height?: string
  center?: { lat: number; lng: number }
  zoom?: number
  showFooter?: boolean
}

export interface TencentMapEmits {
  'coordinate-selected': [coordinates: { lat: number; lng: number }]
  'map-ready': []
}